package org.linlinjava.litemall.db.service;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.github.yulichang.base.MPJBaseServiceImpl;
import org.linlinjava.litemall.db.dao.LumiereMaterialClassificationMapper;
import org.linlinjava.litemall.db.domain.LumiereMaterialClassification;
import org.springframework.stereotype.Service;

@Service
public class LumiereMaterialClassificationService extends MPJBaseServiceImpl<LumiereMaterialClassificationMapper, LumiereMaterialClassification> {

    public LumiereMaterialClassification getByClassification(String classification){
        return this.getOne(Wrappers.lambdaQuery(LumiereMaterialClassification.class).eq(LumiereMaterialClassification::getClassificationName,classification));
    }

}
